package org.groovyflow.util;

import java.util.LinkedHashMap;

/**
 * Always turns your key into a lowercase String, so that you don't
 * need to worry about your keys' case.
 * @author ctassoni
 */
public class IgnoreCaseMap extends LinkedHashMap {

	@Override
	public Object put(Object key, Object value) {
		return super.put(Lower.lower(key), value);
	}
	
	@Override
	public Object get(Object key){
		return super.get(Lower.lower(key));
	}

	
}
